﻿using qqdest.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace qqdest.Service
{
    /// <summary>
    /// 只存放用户相关的业务逻辑接口
    /// </summary>
    internal interface IUserService
    {
        /// <summary>
        /// 用户登录接口
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        bool Login(User user);
        /// <summary>
        /// 检查字符串是否为空 或 指定长度
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        bool CheckUserInput(string str, int len);

        /// <summary>
        /// 注册
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        bool Register(User user);
    }
}
